﻿@model Fmis21_10.Models.Match

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Layout.cshtml";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Match</legend>

        @Html.HiddenFor(model => model.MatchId)

        <div class="editor-label">
            @Html.LabelFor(model => model.Round)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Round)
            @Html.ValidationMessageFor(model => model.Round)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TournamentId, "Tournament")
        </div>
        <div class="editor-field">
            @Html.DropDownList("TournamentId", String.Empty)
            @Html.ValidationMessageFor(model => model.TournamentId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.StadiumId, "Stadium")
        </div>
        <div class="editor-field">
            @Html.DropDownList("StadiumId", String.Empty)
            @Html.ValidationMessageFor(model => model.StadiumId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Type)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Type)
            @Html.ValidationMessageFor(model => model.Type)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Time)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Time)
            @Html.ValidationMessageFor(model => model.Time)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Location)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Location)
            @Html.ValidationMessageFor(model => model.Location)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Weather)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Weather)
            @Html.ValidationMessageFor(model => model.Weather)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MatchSupervision)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MatchSupervision)
            @Html.ValidationMessageFor(model => model.MatchSupervision)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RefereeSupervision)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RefereeSupervision)
            @Html.ValidationMessageFor(model => model.RefereeSupervision)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.HomeTeam)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.HomeTeam)
            @Html.ValidationMessageFor(model => model.HomeTeam)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AwayTeam)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AwayTeam)
            @Html.ValidationMessageFor(model => model.AwayTeam)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ScoreHomeTeam)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ScoreHomeTeam)
            @Html.ValidationMessageFor(model => model.ScoreHomeTeam)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ScoreAwayTeam)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ScoreAwayTeam)
            @Html.ValidationMessageFor(model => model.ScoreAwayTeam)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

